package com.bdqn.calc;

/**
 * @author ckf
 * @create 2018 09 26 16:34
 * @desc
 **/
public class Div implements ICalc {
    @Override
    public double calc(double num1, double num2) {
        double result=0;
        if(num2!=0){
            result=num1/num2;
        }else{
            System.out.println("除数不能为0");

        }

        return result;
    }
}
